<?php
Yii::app()->clientScript->registerCoreScript('jquery.ui');
Util::tsRegisterAssetJs('kanban.js');
$this->pageTitle = Tarea::label(2);

$this->menu = array(
    array('label' => Yii::t('AweCrud.app', 'Create'), 'icon' => 'plus', 'visible'=>Util::checkAccess(array("action_tarea_create")), 'url' => array('create')),
    array(
        'label' => 'Exportar', 'icon' => 'download-alt','visible'=>Util::checkAccess(array("action_cobranza_ExportExcel")), 'url' => '#', 'items' => array(
            array('label' => 'Todos', 'url' => '#', 'linkOptions' => array(
                    'onclick' => 'ExporCont(true)')),
        ),
    ),
    array('label' => Yii::t('AweCrud.app', 'lista'), 'icon' => 'list-alt','visible'=>Util::checkAccess(array("action_cobranza_admin")), 'url' => array('admin')),
);
?>
<div class="row-fluid">
    <div class="widget green">
        <div class="widget-title">
            <h4><i class="icon-trello"></i> Tareas </h4>
        </div>
        <div class="widget-body">

            <div class="kanban-container clearfix">
                <?php $this->renderPartial('_kanban',array('etapas'=>$etapas));?>
            </div>

        </div>
    </div>
</div>
<form id="formId" method="post" target="blank">
    <input type="hidden" id="id_tareas" name="Tareas">
</form>

